package models;


import java.util.*;

import javax.persistence.*;

//import org.hibernate.annotations.Entity;

import play.db.jpa.*;

@Entity
public class Datafile_jl extends Model{
	
	public Integer datafile_id;
	public String filename;
	public String basefilename;
	public String filepath;
	public String filepath_rec;
	public String filepath_org;
	public Date dateadded;
	public Integer num_rows;
	public Integer num_cols;
	public Integer parent_datafile_id;
	public Integer grandparent_datafile_id;
	public Integer created_session_id;
	public Integer created_grandparent_session_id;
	
	public Datafile_jl(int datafile_id, String filename, String basefilename, String filpath) {
		this.datafile_id = datafile_id;
		this.filename = filename;
		this.basefilename = basefilename;
		this.filename = filename;
	}
	
	public static void main(String[] args) {
//		new Datafile_jl(1, "1.dat", "1.dat", "1/1.dat").save();
		System.out.println(Test.findAll());
		System.out.println(Datafile_jl.findAll().get(0)._key());
		System.out.println(Datafile_perm_jl.findAll().get(0));
	}

	public int getDatafile_id() {
		return datafile_id;
	}

	public void setDatafile_id(int datafile_id) {
		this.datafile_id = datafile_id;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getBasefilename() {
		return basefilename;
	}

	public void setBasefilename(String basefilename) {
		this.basefilename = basefilename;
	}

	public String getFilepath() {
		return filepath;
	}

	public void setFilepath(String filepath) {
		this.filepath = filepath;
	}

	public String getFilepath_rec() {
		return filepath_rec;
	}

	public void setFilepath_rec(String filepath_rec) {
		this.filepath_rec = filepath_rec;
	}

	public String getFilepath_org() {
		return filepath_org;
	}

	public void setFilepath_org(String filepath_org) {
		this.filepath_org = filepath_org;
	}

	public Date getDateadded() {
		return dateadded;
	}

	public void setDateadded(Date dateadded) {
		this.dateadded = dateadded;
	}

	public int getNum_rows() {
		return num_rows;
	}

	public void setNum_rows(int num_rows) {
		this.num_rows = num_rows;
	}

	public int getNum_cols() {
		return num_cols;
	}

	public void setNum_cols(int num_cols) {
		this.num_cols = num_cols;
	}

	public Integer getParent_datafile_id() {
		return parent_datafile_id;
	}

	public void setParent_datafile_id(Integer parent_datafile_id) {
		this.parent_datafile_id = parent_datafile_id;
	}

	public Integer getGrandparent_datafile_id() {
		return grandparent_datafile_id;
	}

	public void setGrandparent_datafile_id(Integer grandparent_datafile_id) {
		this.grandparent_datafile_id = grandparent_datafile_id;
	}

	public Integer getCreated_session_id() {
		return created_session_id;
	}

	public void setCreated_session_id(Integer created_session_id) {
		this.created_session_id = created_session_id;
	}

	public Integer getCreated_grandparent_session_id() {
		return created_grandparent_session_id;
	}

	public void setCreated_grandparent_session_id(
			Integer created_grandparent_session_id) {
		this.created_grandparent_session_id = created_grandparent_session_id;
	}
}
